package me.crawler;

import java.net.MalformedURLException;
import java.net.URL;

public class RunCrawler {
	
	
	public static void main (String [] args){
		
		
		URLQueue q = new URLQueue();
		
		q.setMaxLinks(100);
		try {
			q.push(new URL("http://en.wikipedia.org/wiki"),0);

		int maxThreads = 100;
		int maxDepth = 1;
		int level = 0;
		
			CrawlerThreadController tc = new CrawlerThreadController( maxThreads,maxDepth,q,level);
			
			
		} catch (MalformedURLException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}	
		 catch (InstantiationException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		
		
	}


}
